package cn.wen233.basic.model;

import cn.wen233.basic.consts.Constants;
import cn.wen233.basic.utils.IdUtils;
import cn.wen233.basic.utils.StringUtils;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Objects;

/**
 * 服务 实体
 *
 * @author wenei
 * @date 2021-10-11 10:51
 */
@Data
public class Service {

    private String id;

    private String name;

    private String appName;

    private String groupName;

    private String namespaceId;

    /**
     * 状态
     * 0、正常
     */
    private Integer status;

    public Service() {
        this.id = String.valueOf(IdUtils.snowId());
        this.namespaceId = Constants.PUBLIC_NAMESPACE;
    }

    public Service(String name) {
        this.name = name;
    }

}
